package com.cool.reggie;

import com.cool.reggie.config.WebMvcConfig;
import com.github.yitter.contract.IdGeneratorOptions;
import com.github.yitter.idgen.YitIdHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

/**
 * @Author ifredom
 * @Date 2022/6/30
 * @ClassName ReggieApplication
 * @Version 1.0.0
 * @Description 描述
 **/
@Slf4j
@EnableTransactionManagement
@ServletComponentScan
@EnableCaching
@SpringBootApplication()
public class ReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        IdGeneratorOptions options = new IdGeneratorOptions((short)1);
        YitIdHelper.setIdGenerator(options);
        log.info("项目启动");
    }

}
